import { platformList, getPlatformInfo, addPlatform, addRemark, recharge, getMenuList } from '@/services/Platform'

export default () => {
  // 获取平台列表
  const GetPlatformList = <T>(data: T) => {
    return platformList(data)
  }

  // 平台详情
  const GetPlatformInfo = <T>(data: T) => {
    return getPlatformInfo(data)
  }

  // 添加平台
  const AddPlatform = <T>(data: T) => {
    return addPlatform(data)
  }

  // 添加备注
  const AddRemark = <T>(data: T) => {
    return addRemark(data)
  }

  // 充值接口
  const Recharge = <T>(data: T) => {
    return recharge(data)
  }

  // 获取指定类型路由列表
  const GetMenuList = <T>(data: T) => {
    return getMenuList(data)
  }

  return {
    GetPlatformList,
    GetPlatformInfo,
    AddPlatform,
    Recharge,
    AddRemark,
    GetMenuList
  }
}
